package test_extend;

public class Person {
    private String name;
    private int age;

    public Person(){
        System.out.println("Person");
    }

    public Person(String name, int age)
    {
        this.name = name;
        this.age = age;
    }

    public String toString()
    {
        return "Person [name = " + name + ", age = " + age + "]";
    }

    public void method(){
        System.out.println("我是人");
    }

}
